<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var hero = prompt('请输入你选择的英雄');
        var attribute = prompt('请说明英雄的属性');
        var lever = prompt('请选择您的英雄等级');
        var skill = prompt('请说明英雄的技能');
        console.log(typeof attribute);
        console.log(typeof lever);
        console.log(hero + "是" + attribute + "属性英雄，");
        console.log("已经" + lever + "级了,");
        console.log( "他的技能是" + skill);
    </script>
</body>

</html>